package cn.xorange.commons.logs.configuration;

import cn.xorange.commons.logs.service.AsyncLogService;
import cn.xorange.commons.logs.service.AsyncLogServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志配置类
 * @author wuhao
 * @since 2.5.0 - 2021/12/10
 */
@Configuration
public class DefaultLogConfigure {

    /**
     * 默认异步日志处理类
     * @return
     * @author wuhao
     * @since 2.2.3 - 2021/12/11
     */
    @Bean
    @ConditionalOnMissingBean
    public AsyncLogService logService()
    {
        return new AsyncLogServiceImpl();
    }

}
